package net.service.Impl;

import net.mapper.MoodMapper;
import net.pojo.Mood;
import net.service.MoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class MoodeServiceImpl implements MoodService {
    @Autowired
    MoodMapper moodMapper;
    @Override
    public List<Mood> findAll() {
        return moodMapper.findAll();
    }
}
